/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package patterns.abstractfactory;

/**
 *
 * @author Zeus
 */
public class AbstractFactory {
    public SpeciesFactory getSpeciesFactory(String type){
        if(type.equalsIgnoreCase("mammal")){
            return new MammalFactory();
        }
        else{
            return new ReptileFactory();
        }
    }
}
